Build with -O0 on arm64 to avoid FTBS
authorRob Browning <rlb@defaultvalue.org>
Tue, 1 Aug 2017 04:27:59 +0000 (23:27 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 1 Aug 2017 04:33:31 +0000 (23:33 -0500)
Without this the build segfaults in marker.c when trying to construct
c-by.el.

cf. https://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00798.html

Thanks to Gianfranco Costamagna for reporting the bug and Barry Warsaw
for suggesting the workaround.

Closes: 868165
debian/rules

index 94d0632f9f852bdbd09744d487e7453de44f507a..fd6f3a7891dfb52778844f22574eb4bf5660a72b 100755 (executable)
@@ -102,6 +102,11 @@ endif
 
 deb_host_multiarch := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+# Without this, the build dies in marker.c when trying to create c-by.el
+ifeq ($(DEB_HOST_ARCH),arm64)
+  export DEB_CFLAGS_MAINT_APPEND := -O0
+endif
+
 CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
 CFLAGS += -Wall
 LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)